﻿using Authentication.Core.Configuration;
using Authentication.Model.Model;
using Common.Data.Extensions;

namespace Authentication.Core.Data.DBConfig
{
    public class BranchConfiguration : DBConfig<Branch>
    {
        public BranchConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => new { k.BranchCodeSme });

            //relationship
            //HasOptional(t => t.).WithMany(c => c.Accounts).HasForeignKey(t => new { t.ApplicationKey, t.GroupId }).WillCascadeOnDelete(false);
        }
    }
}
